package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.BqqxshVo;
import com.dhsc.local.dao.xtqxgl.IBqqxshDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: BqqxshDaoImpl
 * @Description:
 * @date: 2023/11/28 14:30
 * @author: gx
 */
@Repository("bqqxshDao")
public class BqqxshDaoImpl implements IBqqxshDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<BqqxshVo> queryBqqxsh(BqqxshVo bqqxshVo) {
        return localSqlSessionTemplate.selectList("BqqxshMapper.queryBqqxsh", bqqxshVo);
    }

    @Override
    public int updateIsbqPass1(BqqxshVo bqqxshVo) {
        return localSqlSessionTemplate.update("BqqxshMapper.updateIsbqPass1", bqqxshVo);
    }

    @Override
    public int updateIsbqPass2(BqqxshVo bqqxshVo) {
        return localSqlSessionTemplate.update("BqqxshMapper.updateIsbqPass2", bqqxshVo);
    }

    @Override
    public int updateIsbqReturn(BqqxshVo bqqxshVo) {
        return localSqlSessionTemplate.update("BqqxshMapper.updateIsbqReturn", bqqxshVo);
    }

    @Override
    public int updateIsNotbq(BqqxshVo bqqxshVo) {
        return localSqlSessionTemplate.update("BqqxshMapper.updateIsNotbq", bqqxshVo);
    }
}
